const data: any[] = ['1']

export const serverReducer = (state = data, action: any) => {
    switch (action.type) {
        case 'GET_SERVER':
            state = action.payload
            return state
        default:
            return state
    }
}